package com.chuangshu.chuangshuteam.entity;

/**
 * 用户个人信息（包含团队状态）
 * 内部类，用于返回包含团队信息的用户资料
 */
public class UserProfile {
    private Users user;
    private boolean inTeam;
    private TeamMember teamMember;

    // 构造函数
    public UserProfile() {}

    public UserProfile(Users user, boolean inTeam, TeamMember teamMember) {
        this.user = user;
        this.inTeam = inTeam;
        this.teamMember = teamMember;
    }

    // getter and setter
    public Users getUser() {
        return user;
    }

    public void setUser(Users user) {
        this.user = user;
    }

    public boolean isInTeam() {
        return inTeam;
    }

    public void setInTeam(boolean inTeam) {
        this.inTeam = inTeam;
    }

    public TeamMember getTeamMember() {
        return teamMember;
    }

    public void setTeamMember(TeamMember teamMember) {
        this.teamMember = teamMember;
    }

    @Override
    public String toString() {
        return "UserProfile{" +
                "user=" + user +
                ", inTeam=" + inTeam +
                ", teamMember=" + teamMember +
                '}';
    }
}
